import Mock from 'mockjs'

const data = Mock.mock({
    "data":[
      {imgid:1,price:'1200/晚',title:'整套公寓-3张床', imgurl:'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/%E9%A6%96%E9%A1%B5/u315.png',city:'珠海'},
      {imgid:2,imgurl:'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/%E9%A6%96%E9%A1%B5/u338.png',price:'900/晚',title:'整套公寓-6张床',city:'深圳'},
 
  ]
  })
  // console.log(list);
// 收藏数据
  Mock.mock('/getLike','post',()=>{
    return data
  })
  Mock.mock('/addLike','post',()=>{
    return {
        code:'200',
        msg:'添加成功'
    }
  })